#include <funcc.h>
using namespace std;

void readConfig(const string & filename){
    ifstream ifs(filename);
    if(!ifs){
        cerr << "file open failed" << endl;
        return;
    }

    string line;
    string key, value;
    while (getline(ifs, line)){
        istringstream iss(line);
        iss >> key >> value;
        cout << key << "--------->" << value << endl;
    }

    ifs.close();
}

void test0(){
    readConfig("myserver.conf");
}

int main(void){
    test0();
    return 0;
}

